/* 基本样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff; /* 修改背景颜色 */
  color: white;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 头部样式 */
header {
  background-color: #444;
  padding: 10px 0; /* 缩小padding */
  text-align: center;
  margin-bottom: 20px; /* 增加header和幻灯片之间的间距 */
}

.logo img {
  display: block;
  margin: 0 auto;
  max-width: 250px;
  height: auto;
}

/* 导航栏样式 */
nav {
  text-align: center;
  margin-top: 5px; /* 缩小margin */
  display: flex;
  justify-content: center;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: inline-flex;
}

nav ul li {
  display: inline;
  margin: 0 4px; /* 调整间距 */
}

nav ul li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 16px; /* 调整字体大小 */
  padding: 8px 15px; /* 调整内边距 */
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

h1 {
  text-align: center;
  color: white;
  margin-top: 20px;
  font-size: 20px; /* 调整字体大小 */
}

/* 幻灯片容器 */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  margin-top: 20px; /* 恢复header和幻灯片之间的间距 */
  margin-bottom: 40px; /* 增加幻灯片和底部之间的间距 */
}

/* 幻灯片样式 */
.slide {
  display: none;
}

.active {
  display: block;
}

/* 幻灯片样式 */
.mySlides {
  display: none;
  position: relative;
  width: 100%;
}

/* 调整图片大小 */
.slideshow-container img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
}

/* 添加手动浏览按钮样式 */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: rgb(250, 250, 250);
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(211, 211, 211, 0.5); /* 添加浅灰底色 */
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 幻灯片指示器样式 */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.nav-menu {
    display: flex;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background-color: #444;
        padding: 10px;
        z-index: 1000;
        width: 200px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    nav ul li {
        display: block;
        margin: 10px 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent;
    }
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 15px;
  background-color: #333;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 20px; /* 增加页脚顶部的间距 */
  font-size: 14px; /* 调整字体大小 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: auto;
}
.nav-item a {
  position: relative;
  text-decoration: none;
  color: #000;
}

.nav-item a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #000;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.nav-item a:hover::after {
  visibility: visible;
  transform: scaleX(1);
}

.photo-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.row {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

.column {
  flex: 1;
  max-width: 33%;
  padding: 0 10px;
}

.column img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 6px 8px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
  display: block;
}
